package com.cn.shiro.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.shiro.dao.UUserMapper;
import com.cn.shiro.dao.UserRoleMapper;
import com.cn.shiro.entity.UUser;
import com.cn.shiro.service.UUserService;

@Service("uUserService")
public class UUserServiceImpl implements UUserService {
	/***
	 * 用户手动操作Session
	 * */
	/*@Autowired
	CustomSessionManager customSessionManager;*/
	@Autowired
	UUserMapper userMapper;
	@Autowired
	UserRoleMapper userRoleMapper;
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public UUser insert(UUser record) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public UUser insertSelective(UUser record) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public UUser selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public int updateByPrimaryKeySelective(UUser record) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int updateByPrimaryKey(UUser record) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public UUser login(String email, String pswd) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public UUser findUserByEmail(String email) {
		// TODO Auto-generated method stub
		return userMapper.findUserByEmail(email);
	}
	@Override
	public Map<String, Object> deleteUserById(String ids) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Map<String, Object> updateForbidUserById(Long id, Long status) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Map<String, Object> addRole2User(Long userId, String ids) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Map<String, Object> deleteRoleByUserIds(String userIds) {
		// TODO Auto-generated method stub
		return null;
	}

	
	
	
	
}
